<?php
defined('BASEPATH') OR exit('No direct script access allowed');

define("machineAppid", "783a54740b1c6ca2fe5e0f72b3c06e8a"); //appid值
define("machineSecret", "7296bb2d672c00d2"); //密钥
define("machineApi","http://www.tuling123.com/openapi/api");

class MachineService extends CI_Controller
{

	public function __construct()
	{
		parent::__construct();
		$this->load->model('Article_Model');
		$this->load->helper('url_helper');
	}
	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 *        http://example.com/index.php/welcome
	 *    - or -
	 *        http://example.com/index.php/welcome/index
	 *    - or -
	 * Since this controller is set as the default controller in
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see https://codeigniter.com/user_guide/general/urls.html
	 */



	public function index(){
		$data=array('title'=>'智能小法',
			'welcome'=>'您好，我是智能小法，你除了可以问问法院相关的问题，还可以问我生活问题：',
			'machineAppid'=>machineAppid,
			'machineSecret'=>machineSecret,
			'machineApi'=>machineApi,
			'userid'=>12345
			);
		$this->load->view('head_sec',$data);
		$this->load->view('smart_assistant',$data);
		$this->load->view('foot_sec',$data);
	}
}


